import request from '@/utils/request'

// 查询行政扣发绩效系数列表
export function listOfcabsence(query) {
  return request({
    url: '/sl/ofcabsence/list',
    method: 'get',
    params: query
  })
}

// 查询行政扣发绩效系数详细
export function getOfcabsence(ofcabsenceId) {
  return request({
    url: '/sl/ofcabsence/' + ofcabsenceId,
    method: 'get'
  })
}

// 新增行政扣发绩效系数
export function addOfcabsence(data) {
  return request({
    url: '/sl/ofcabsence',
    method: 'post',
    data: data
  })
}

// 修改行政扣发绩效系数
export function updateOfcabsence(data) {
  return request({
    url: '/sl/ofcabsence',
    method: 'put',
    data: data
  })
}

// 删除行政扣发绩效系数
export function delOfcabsence(ofcabsenceId) {
  return request({
    url: '/sl/ofcabsence/' + ofcabsenceId,
    method: 'delete'
  })
}
